<%--
  Created by IntelliJ IDEA.
  User: kevin
  Date: 2017/11/10
  Time: 14:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>展示页面</title>
</head>
<body>
    <h3>查询结果</h3>
    <table border="1" width="1000">
    <tr>
        <td>车次</td>
        <td>出发地</td>
        <td>目的地</td>
        <td>价格</td>
    </tr>
    <c:if test="${not empty M}">
        <tr>
            <td>${M['trainNum']}</td>
            <td>${M['startStation']}</td>
            <td>${M['endStation']}</td>
            <td>${M['price']}</td>
        </tr>
    </c:if>
        <c:if test="${empty M}">
            <tr>
                <td colspan="4">
                    没有合适的数据
                </td>
            </tr>
        </c:if>

</table>
</body>
</html>
